import request from '@/utils/request'

// 查询培训课程章节表列表
export function listCourse_train_section(query) {
    return request({
        url: '/course/course_train_section/list',
        method: 'get',
        params: query
    })
}

// 查询培训课程章节表详细
export function getCourse_train_section(id) {
    return request({
        url: '/course/course_train_section/' + id,
        method: 'get'
    })
}

// 新增培训课程章节表
export function addCourse_train_section(data) {
    return request({
        url: '/course/course_train_section',
        method: 'post',
        data: data
    })
}

// 修改培训课程章节表
export function updateCourse_train_section(data) {
    return request({
        url: '/course/course_train_section',
        method: 'put',
        data: data
    })
}

// 删除培训课程章节表
export function delCourse_train_section(id) {
    return request({
        url: '/course/course_train_section/' + id,
        method: 'delete'
    })
}
